﻿using UnityEngine;
using System.Collections;

public class Spilt : MonoBehaviour {
    public Transform m_plane;
    public Transform m_spiltObj;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
        SplitObj();
	
	}

    private void SplitObj()
    {
        Plane splitPlane = new Plane(m_plane.up, m_plane.transform.position);
        m_spiltObj.SendMessage("LeaveMainClip", splitPlane, SendMessageOptions.DontRequireReceiver);
    }//end_splitObj
}
